import request from "@/utils/request";

// 查询活动类型列表
export function listType(query) {
  return request({
    url: "/app/activityType/list",
    method: "get",
    params: query,
  });
}

// 查询活动类型详细
export function getType(activityTypeId) {
  return request({
    url: "/app/activityType/" + activityTypeId,
    method: "get",
  });
}

// 新增活动类型
export function addType(data) {
  return request({
    url: "/app/activityType",
    method: "post",
    data: data,
  });
}

// 修改活动类型
export function updateType(data) {
  return request({
    url: "/app/activityType",
    method: "put",
    data: data,
  });
}

// 删除活动类型
export function delType(activityTypeId) {
  return request({
    url: "/app/activityType/" + activityTypeId,
    method: "delete",
  });
}
